import cum.spring.HelloSpring;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class testHelloSpring {
    public static void main(String[] args) {
        //通过
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");

        HelloSpring helloSpring = (HelloSpring) context.getBean("helloSpring");

        helloSpring.print();
    }
}
